package com.itheima.io1.myobjectstream;

import java.io.*;

/**
 * @author zhangbaiyan
 * @date 2024-09-21 19:32
 * @description:
 * @version:
 */
public class test {
    public static void main(String[] args) throws IOException {

        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("u.txt"));
        oos.writeObject(new Student("张柏焰",23,"深圳",1));
        oos.close();

    }
}
